<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8"/>
    <title>{{v('config.webname')}}</title>
    <meta name="csrf-token" content="">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
    <link rel="shortcut icon" href="favicon.ico" type="image/x-icon"/>
    <script>
        //模块配置项
        var hdjs = {
            //框架目录
            'base': '{{__ROOT__}}/node_modules/hdjs',
            //上传文件后台地址
            'uploader': "{{u('component.upload.uploader')}}",
            //获取文件列表的后台地址
            'filesLists': "{{u('component.upload.filesLists')}}",
        };
    </script>
    <link href="{{__ROOT__}}/node_modules/hdjs/css/bootstrap.min.css" rel="stylesheet">
    <link href="{{__ROOT__}}/node_modules/hdjs/css/font-awesome.min.css" rel="stylesheet">
    <script src="{{__ROOT__}}/node_modules/hdjs/app/util.js"></script>
    <script src="{{__ROOT__}}/node_modules/hdjs/require.js"></script>
    <script src="{{__ROOT__}}/node_modules/hdjs/config.js"></script>
    <link href="{{__ROOT__}}/resource/css/hdcms.css" rel="stylesheet">
    <script>
        require(['jquery'], function ($) {
            //为异步请求设置CSRF令牌
            $.ajaxSetup({
                headers: {
                    'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')
                }
            });
        })
        if (navigator.appName == 'Microsoft Internet Explorer') {
            if (navigator.userAgent.indexOf("MSIE 5.0") > 0 || navigator.userAgent.indexOf("MSIE 6.0") > 0 || navigator.userAgent.indexOf("MSIE 7.0") > 0) {
                alert('您使用的 IE 浏览器版本过低, 推荐使用 Chrome 浏览器或 IE8 及以上版本浏览器.');
            }
        }
    </script>
</head>
<body class="site">

<div class="container-fluid admin-top">
    <!--导航-->
    <nav class="navbar navbar-inverse">
        <div class="container-fluid">
            <div class="navbar-header">
                <ul class="nav navbar-nav">

                    <li>
                        <a href={{__ROOT__}}>
                            <i class="fa fa-reply-all"></i> 返回系统
                        </a>
                    </li>
                    <li class="top_menu active">
                        <a href="{{u('admin.category.index')}}">
                            <i class="fa fa-reply-all"></i> 文章系统
                        </a>
                    </li>


                    <li class="top_menu ">
                        <a href="{{u('wechat.config.setting')}}">
                            <i class="'fa-w fa fa-comments-o"></i> 微信功能 </a>
                    </li>
                    <li class="top_menu">

                        <a href="{{u('system.module.index')}}">
                            <i class="'fa-w fa fa-cubes"></i>系统功能 </a>
                    </li>

                </ul>
            </div>
            <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
                <ul class="nav navbar-nav navbar-right">


                    <li class="dropdown">
                        <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button">
                            <i class="fa fa-w fa-user"></i>
                            admin <span class="caret"></span>
                        </a>
                        <ul class="dropdown-menu">
                            <li><a href="{{u('admin.entry.changePassword')}}">修改密码</a></li>



                            <li role="separator" class="divider"></li>
                            <li><a href="?s=admin/login/out">退出</a></li>
                        </ul>
                    </li>
                </ul>
            </div>
        </div>
    </nav>
    <!--导航end-->
</div>
<!--主体-->
<div class="container-fluid admin_menu">
    <div class="row">
        <div class="col-xs-12 col-sm-3 col-lg-2 left-menu">
            <div class="search-menu">
                <input class="form-control input-lg" type="text" placeholder="输入菜单名称可快速查找"
                       onkeyup="search(this)">
            </div>
            <!--扩展模块动作 start-->
            <div class="panel panel-default">
                <!--栏目管理-->
                <div class="panel-heading">
                    <h4 class="panel-title">栏目管理</h4>
                    <a class="panel-collapse" data-toggle="collapse" href="javascript:;">
                        <i class="fa fa-chevron-circle-down"></i>
                    </a>
                </div>
                <ul class="list-group menus">
                    <li class="list-group-item">
                        <a href="{{u('admin.category.index')}}">栏目列表</a>
                    </li>
                    <li class="list-group-item">
                        <a href="{{u('admin.category.post')}}">栏目添加</a>
                    </li>
                </ul>
                <!--                文章管理-->
                <div class="panel-heading">
                    <h4 class="panel-title">文章管理</h4>
                    <a class="panel-collapse" data-toggle="collapse" href="javascript:;">
                        <i class="fa fa-chevron-circle-down"></i>
                    </a>
                </div>
                <ul class="list-group menus">
                    <li class="list-group-item">
                        <a href="{{u('admin.article.index')}}">文章列表</a>
                    </li>
                    <li class="list-group-item">
                        <a href="{{u('admin.article.post')}}">文章添加</a>
                    </li>
                </ul>

                <div class="panel-heading">
                    <h4 class="panel-title">轮播图管理</h4>
                    <a class="panel-collapse" data-toggle="collapse" href="javascript:;">
                        <i class="fa fa-chevron-circle-down"></i>
                    </a>
                </div>
                <ul class="list-group menus">
                    <li class="list-group-item">
                        <a href="{{u('admin.slide.index')}}">轮播图列表</a>
                    </li>
                    <li class="list-group-item">
                        <a href="{{u('admin.slide.post')}}">轮播图添加</a>
                    </li>
                </ul>





                <!--                系统配置-->

                <div class="panel-heading">
                    <h4 class="panel-title">系统设置</h4>
                    <a class="panel-collapse" data-toggle="collapse" href="javascript:;">
                        <i class="fa fa-chevron-circle-down"></i>
                    </a>
                </div>
                <ul class="list-group menus">
                    <li class="list-group-item">
                        <a href="{{u('admin.config.setting')}}">网站配置</a>
                    </li>

                </ul>
                <!--                微信配置-->
                <!----------返回模块列表 start------------>
                <!--模块列表-->
                <!--模块列表 end-->
            </div>
        </div>
        <div class="col-xs-12 col-sm-9 col-lg-10">
            <!--有模块管理时显示的面包屑导航-->
            <blade name="content"/>
        </div>
    </div>
</div>
<div class="master-footer">

    <script type="text/javascript">var cnzz_protocol = (("https:" == document.location.protocol) ? " https://" : " http://");document.write(unescape("%3Cspan id='cnzz_stat_icon_1262380840'%3E%3C/span%3E%3Cscript src='" + cnzz_protocol + "s22.cnzz.com/z_stat.php%3Fid%3D1262380840%26show%3Dpic2' type='text/javascript'%3E%3C/script%3E"));</script>
    <br>
    站长邮箱:{{v('config.email')}}
    <br>
    客服电话:{{v('config.tel')}}
    <br>
    备案信息:{{v('config.icp')}}

</div>
<script src="http://dev.hdcms.com/resource/js/menu.js"></script>
<script src="http://dev.hdcms.com/resource/js/quick_navigate.js"></script>
<script>
    require(['bootstrap']);
</script>
<script>
    require(['util', 'underscore'], function (util, _) {
        require(['angular', 'jquery'], function (angular,$) {
            angular.module('app', []).controller('ctrl', ['$scope', function ($scope) {
                if (angular.isFunction(controller)) {
                    controller($scope, $, _);
                }
            }]);
            //相当于ng-app="app"，有了这句话不需要再body再写ng-app='app'
            angular.bootstrap(document.getElementsByTagName('body'), ['app']);
        });
    });
</script>
</body>
</html>

<style>
    table {
        table-layout: fixed;
    }
</style>